package aa.jx.order.model;

import java.math.BigDecimal;
import java.util.List;
public class ProductCategory {
    private Integer id;
    private Integer parentId;
    private String name;
    private Integer level;
    private Integer sortOrder;
    private Integer status;
    private List<ProductCategory> children; // 子分类列表

    // 构造方法
    public ProductCategory() {
    }

    public ProductCategory(Integer id, Integer parentId, String name, Integer level, Integer sortOrder, Integer status) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.level = level;
        this.sortOrder = sortOrder;
        this.status = status;
    }

    // Getter和Setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<ProductCategory> getChildren() {
        return children;
    }
    public void setChildren(List<ProductCategory> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "ProductCategory{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                ", level=" + level +
                ", sortOrder=" + sortOrder +
                ", status=" + status +
                '}';
    }
}